package flow.model;

import m.common.model.FieldMeta;
import m.common.model.LinkTableMeta;
import m.common.model.Model;
import m.common.model.TableMeta;
import m.common.model.type.FieldType;

import java.util.Date;

@TableMeta(name="of_flow_item_phase",description="流程项目阶段")
public class FlowItemPhase extends Model {
    @LinkTableMeta(name="item_oid",table=FlowItemTest.class,notnull=true,description="所属项目")
    private FlowItemTest item;
    @FieldMeta(name="phase_name",type= FieldType.STRING,length=20,description="阶段名称")
    private String phaseName;
    @FieldMeta(name="status",type= FieldType.INT,dbType="tinyint(3)",description="状态",dictOption = "0:完成,1:执行中,2:中止")
    private String status;
    @FieldMeta(name="main_dept_id",type= FieldType.STRING,length=20,description="主体处id",dictType = "manage.model.AdminGroup:C;;B")
    private String mainDept;
    @FieldMeta(name="duty_person",type= FieldType.STRING,length=20,description="负责人")
    private String dutyPerson;
    @FieldMeta(name="expect_date",type= FieldType.DATE,description="要求完成时间")
    private Date expectDate;
    @FieldMeta(name="investment",type= FieldType.DOUBLE,dbType="decimal(32,8)",description="立项投资")
    private Double investment;

    public FlowItemTest getItem() {
        return item;
    }

    public void setItem(FlowItemTest item) {
        this.item = item;
    }

    public String getPhaseName() {
        return phaseName;
    }

    public void setPhaseName(String phaseName) {
        this.phaseName = phaseName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMainDept() {
        return mainDept;
    }

    public void setMainDept(String mainDept) {
        this.mainDept = mainDept;
    }

    public String getDutyPerson() {
        return dutyPerson;
    }

    public void setDutyPerson(String dutyPerson) {
        this.dutyPerson = dutyPerson;
    }

    public Date getExpectDate() {
        return expectDate;
    }

    public void setExpectDate(Date expectDate) {
        this.expectDate = expectDate;
    }

    public Double getInvestment() {
        return investment;
    }

    public void setInvestment(Double investment) {
        this.investment = investment;
    }
}
